package irwin.test;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Vector;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import org.apache.commons.io.IOUtils;
import org.apache.commons.io.input.UnixLineEndingInputStream;

/**
 * Hello world!
 *
 */
public class Regex 
{
    public static void main( String[] args ) throws IOException
    {
//    	File file = new File("D://user/01211407/Downloads/create_tables.sql");
//        FileInputStream fis = new FileInputStream(file);
//        String content = IOUtils.toString(fis, "utf8");
//        String regex = "[(a-zA-Z0-9\\u4e00-\\u9fa5)]+|\\.|'|\\/|\\,|\\(|\\)|\\s|\r\n|\\=|\\;";
//        Pattern p = Pattern.compile(regex); 
//        Matcher matcher = p.matcher(content);
//        File newFile = new File("D://user/01211407/Downloads/new_tables.sql");
//        FileOutputStream fos = new FileOutputStream(newFile);
//        while (matcher.find()) {
//			IOUtils.write(matcher.group(), fos, "utf8");
//		}
//        IOUtils.closeQuietly(fos);
//        IOUtils.closeQuietly(fis);
    	ArrayList<String> str01 = new ArrayList<String>();    
        str01.add("123");    
        Vector<String> str02 = new Vector<String>();    
        str02.add("123");    
        System.out.println(str01.equals(str02));
        
    }
}
